package presenters.component

class PostComponent {

    def namespace = "gp"

    def unpublished = { post, callback ->
        if(!post.published) {
            callback()
        }
    }

    def published = { post, callback ->
        if(post.published) {
            callback()
        }
    }
}